package cn.datax.service.data.market.cata.feign;

import cn.datax.service.data.market.cata.entity.UserResourceInfoEntity;
import cn.datax.service.data.market.cata.feign.factory.UserResourceServiceFeignFallbackFactory;
import cn.datax.service.data.market.table.entity.DataTableEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(contextId = "userResourceServiceFeign", value = "datax-service-data-market", fallbackFactory = UserResourceServiceFeignFallbackFactory.class)
public interface UserResourceServiceFeign {

    @GetMapping("/inner/UserResource/{id}")
    UserResourceInfoEntity getDataResourceById(@PathVariable("id") String id);

    @GetMapping("/inner/UserResource/apply/list")
    List<UserResourceInfoEntity> getApplyDataResourceList();
}
